package sword.T65;

/**
 * @Author: 18362
 * @Create: 2022-04-10 19:52:25 星期日
 */
class Solution {
    public int add(int a, int b) {
        while (b != 0) {
            int c = (a & b) << 1;
            a ^= b;
            b = c;
        }
        return a;
    }
}